/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */
package com.hohai.river.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pig4cloud.pig.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 指标表
 *
 * @author pig code generator
 * @date 2022-09-17 10:10:19
 */
@Data
@TableName("sys_index")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "指标表")
public class SysIndex extends BaseEntity {

	/**
	 * 指标ID
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@Schema(description = "指标ID")
	private Long id;

	/**
	 * 指标code值，和具体指标的数据库表名对应
	 */
	@Schema(description = "指标code值，和具体指标的数据库表名对应")
	private String indexCode;

	/**
	 * 指标名
	 */
	@Schema(description = "指标名")
	private String indexName;

	/**
	 * 上级指标ID
	 */
	@Schema(description = "上级指标ID")
	private Long pid;

	/**
	 * 排序值
	 */
	@Schema(description = "排序值")
	private Long sortOrder;

	/**
	 * 指标介绍
	 */
	@Schema(description = "指标介绍")
	private String indexDescription;

	/**
	 * 支撑材料说明
	 */
	@Schema(description = "支撑材料说明")
	private String supportMaterial;

	@TableField(exist = false)
	private Boolean finished;

}
